home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 March / EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso / earcd / patches / dops511d.lha / Update_Dopus511 < prev    next >
Text File  |  1995-06-22  |  7KB  |  256 lines

  1. ;************************************************************************
  2. ; Script to Update Directory Opus version 5 or version 5.1
  3. ; ©    Dr Greg Perry GPSoftware 20.6.95  
  4. ;     also handles German version 18/5/95 update 
  5. ;    "$VER: UpdateDopus5.11  1.1  20.5.95"
  6. ;*************************************************************************
  7. ;
  8. ;    creates temp dir as ram:updop and ram:updop/new
  9. ;    assigns DOPTMP: ram:updop
  10. ;    assigns DOPNEW: DOPTMP:new" (safe))
  11.  
  12.  
  13.  
  14. ;
  15. ; setup procedure to perform the actual patchings
  16. ;
  17.  
  18. (procedure patch ; uses FILE
  19. (set SRCFILE (tackon "DOPNEW:" FILE ))
  20. (set PATCHFILE (cat SRCFILE ".pch"))
  21. (set OLDFILE (tackon "OLDOPUS:" FILE))
  22. (set NEWFILE (tackon "DOPNEW:" FILE))
  23. (working "Patche Datei : "FILE )
  24.  
  25. (delete "DOPNEW:doptemp" (safe))
  26. (run "DOPTMP:spatch >NIL: <NIL: -oDOPTMP:wally "(cat "-p" PATCHFILE)" "OLDFILE)
  27. (if    (exists "DOPTMP:wally")
  28.     (rename "DOPTMP:wally" NEWFILE)
  29.     (
  30.     (if    (= HELPFILE 1)
  31.         (message "Der versuchte Patch für die Hilfsdatei war nicht erfolgreich, (evtl. unkorrekte Version). Die aktuelle Hilfsdatei wurde nicht geändert.\n\nBitte kontaktieren Sie die Schatztruhe GmbH oder GPSoftware für Informationen, wie Sie eine korrekte Hilfsdatei erhalten\n")
  32.         (abort "Der versuchte Patch für die Datei \n" OLDFILE "\n war nicht erfolgreich, (evtl. unkorrekte Version).  Bitte stellen Sie sicher, daß Sie eine Originalversion von Directory Opus 5 oder 5.1 installiert haben")
  33.     )
  34.     )
  35.     
  36. )
  37. (delete PATCHFILE (safe))
  38. )
  39.  
  40. ;
  41. ; main
  42. ;
  43.  
  44. (welcome "Directory Opus 5.11 Update")
  45. (set HELPFILE 0)
  46.  
  47. ;
  48. ; assign the patch to wherever we are disk or ram: etc
  49. ;
  50.  
  51. (makeassign "Dopus511Update" "" (safe))
  52.  
  53. ;
  54. ;get our assignments
  55. ;
  56. (set DOPdest (getassign "dopus5" "a"))
  57. (set @default-dest DOPdest)
  58.  
  59.  
  60.  
  61. (makeassign "OLDOPUS" DOPdest)
  62.  
  63. (if    (<> (exists "OLDOPUS:DirectoryOpus") 1)
  64.     (abort "Directory Opus befindet sich nicht im Verzeichnis Dopus5: . Sie müssen Directory Opus 5.0 oder 5.1 korrekt installiert haben, bevor Sie diesen Update-Patch anwenden können.")
  65. )
  66.  
  67. ;
  68. ;Check versions installed
  69. ;
  70.  
  71. (working "Überprüfe Version des aktuellen Directory Opus...")
  72. (run "version >env:dopvers5 OLDOPUS:DirectoryOpus full ")
  73. (set DOPVER (substr (getenv "dopvers5") 15 3))
  74.  
  75. (if    (= "5.0" DOPVER)
  76.     (set VER 0)
  77.     (
  78.     (if (= "5.1" DOPVER)
  79.         (set VER 1)
  80.         (abort "Sie haben nicht die korrekte Version "VER" von DirectoryOpus auf Ihrer Festplatte installiert. Sie müssen Version 5.0 oder 5.1 installiert haben, um diesen Patch nutzen zu können.")
  81.     
  82.     )
  83.     )
  84. )
  85.  
  86. ;
  87. ;copy parts required to ram:
  88. ;
  89.  
  90. (makedir "ram:updop")
  91. (makedir "ram:updop/new")
  92.  
  93. (makeassign "DOPTMP" "ram:updop" (safe))
  94. (makeassign "DOPNEW" "DOPTMP:new" (safe))
  95.  
  96.  
  97. (copyfiles
  98.     (source "dopus511Update:")
  99.     (dest "DOPTMP:")
  100.     (pattern "(lhex|spatch)")
  101.     (nogauge)
  102.     (files)    
  103. )
  104.  
  105. ;
  106. ; which set of patch files ?
  107. ;
  108.  
  109. (if (= VER 1)    (set PCH "pch51.lha")
  110.         (set PCH "pch50.lha")
  111. )
  112.  
  113. (message"\nSie haben Directory Opus Version 5."VER" installiert. \n\n"
  114.     "\nDas Update von Directory Opus 5 und den dazugehörigen Dateien und Bibliotheken auf Version 5.11 kann durchgeführt werden.\n\n"
  115.     "Dies wird einige Minuten dauern.\n"
  116.     "Wünschen Sie, dieses Update durchzuführen?")
  117.  
  118.  
  119. (working "Entpacke Archive für den Patch \n Directory Opus version 5."VER"\n\n Bitte warten...\n")
  120.  
  121. (run "DOPTMP:lhex >NIL: <NIL: -qfw=DOPTMP: x dopus511Update:dopus_pch.lha " PCH)
  122. (run "DOPTMP:lhex >NIL: <NIL: -qfw=DOPNEW: x " (cat "DOPTMP:" PCH))
  123. (delete (cat "DOPTMP:" PCH))
  124.  
  125. ;
  126. ;Thunderbirds are go!
  127. ;
  128.  
  129. (set FILE "DirectoryOpus") (patch)
  130. (set FILE "c/DOpusRT5") (patch)
  131. (set FILE "c/LoadDB") (patch)
  132. (set FILE "libs/dopus5.library") (patch)
  133. (set FILE "modules/about.module") (patch)
  134. (set FILE "modules/configopus.module") (patch)
  135. (set FILE "modules/diskcopy.module") (patch)
  136. (set FILE "modules/diskinfo.module") (patch)
  137. (set FILE "modules/format.module") (patch)
  138. (set FILE "modules/icon.module") (patch)
  139. (set FILE "modules/listerformat.module") (patch)
  140. (set FILE "modules/play.module") (patch)
  141. (set FILE "modules/print.module") (patch)
  142. (set FILE "modules/read.module") (patch)
  143. (set FILE "modules/show.module") (patch)
  144.  
  145.  
  146.  
  147. ;
  148. ; finally update the REAL Opus directory with the newly patched files
  149. ;
  150.  
  151. (working "Die Dateien Ihres originalen Directory Opus Verzeichnis werden jetzt durch die neuen Dateien ersetzt..\n")
  152. (copyfiles
  153.     (source "DOPNEW:")
  154.     (dest "OLDOPUS:modules")
  155.     (pattern "register.module")
  156.     (nogauge)
  157.     (files)    
  158. )
  159. (delete "DOPNEW:register.module")
  160. (copyfiles
  161.     (source "DOPNEW:")
  162.     (dest "OLDOPUS:")
  163.     (optional force)
  164.     (all)    
  165. )
  166.  
  167. ;
  168. ; check if user had Opus as WB replacement
  169. ;
  170.  
  171. (run "version >env:dopldb c:loadwb full")
  172. (set DOPVER1 (substr (getenv "dopldb") 0 6))
  173.  
  174. (if    (= "LoadDB" DOPVER1)
  175.     (copyfiles
  176.         (source "DOPNEW:c/LoadDB")
  177.         (dest "C:")
  178.         (newname "LoadWB")
  179.         (optional force)
  180.     )
  181. )
  182.  
  183.  
  184. ;
  185. ;Install the Readme file
  186. ;
  187.  
  188. (run "DOPTMP:lhex >NIL: <NIL: -qfw=OLDOPUS: x dopus511Update:dopus_pch.lha ReadMe.511")
  189.  
  190. (if    (askbool
  191.     (prompt"\nWünschen Sie die Installation der extra ARexx Skripte, die von "
  192.         "Opus 5 Benutzern zur Verfügung gestellt wurden?\n\n"
  193.         "Schauen Sie bitte in die aktuellen Skriptdateien für weitere Details zur Installation und Benutzung.\n")
  194.     (help "none")
  195.     )
  196.     ( 
  197.         (run "DOPTMP:lhex >NIL: <NIL: -qfw=DOPTMP: x dopus511Update:dopus_pch.lha ARexx.lha")
  198.         (run "DOPTMP:lhex >NIL: <NIL: -qfw=DOPTMP: x DOPTMP:ARexx.lha")
  199.         (copyfiles
  200.             (prompt "Bitte wählen Sie die Skripte, die Sie ins Verzeichnis Dopus5:Arexx kopiert haben wollen\n")
  201.             (help @copyfiles-help)
  202.             (source "DOPTMP:Arexx")
  203.             (dest "OLDOPUS:Arexx")
  204.             (confirm)
  205.             (all)    
  206.         )
  207.         (run "delete DOPTMP:Arexx all quiet")
  208.     )
  209. )
  210.  
  211. (if    (askbool
  212.         (prompt"\nWünschen Sie die Installation des ARexx LhADir Archivs in Ihr Opus5 Verzeichnis?\n\n"
  213.         "Das LhADir Archiv wurde von Edmund Vermeulen entwickelt.\n Es erlaubt Ihnen den einfachen Umgang mit LHA und LZH Dateien durch Directory Opus 5\n")
  214.         (help "none")
  215.     )
  216.     (
  217.     (run "DOPTMP:lhex >NIL: <NIL: -qfw=OLDOPUS: x dopus511Update:LhADirOpus5V10.lha")
  218.     (message "\nLhADir wurde entpackt ins aktuelle Dopus5: Verzeichnis.\n"
  219.         "\nNach Beendigung der Opus 5.11 Installation, öffnen Sie "
  220.         "bitte das Verzeichnis dopus5:LhADir und doppelklicken Sie "
  221.         "'Install LhADir', um die Installation von LhADir zu vervollständigen\n")
  222.     )
  223. )
  224.  
  225.  
  226.  
  227. ;
  228. ;Display the ReadMe 
  229. ;
  230.  
  231. (IF (> (run "Sys:Utilities/MultiView OLDOPUS:ReadMe.511") 0)
  232.     (IF (> (run "Sys:Utilities/AmigaGuide OLDOPUS:ReadMe.511") 0)
  233.         (run "More OLDOPUS:ReadMe.511")
  234.     )
  235. )
  236.     
  237.         
  238. (message "\nFertig!\n\nDirectory Opus liegt nun in Version 5.11 vor.\nSie sollten Ihren Amiga nun neustarten und Directory Opus erneut registrieren, um die Installation zu vervollständigen.")
  239.  
  240.  
  241.  
  242.     
  243. ;
  244. ;clean up
  245. ;
  246.  
  247. (makeassign "DOPTMP" (safe))
  248. (makeassign "DOPNEW" (safe))
  249. (makeassign "Dopus511Update" (safe))
  250.  
  251. (run "Delete ram:updop all quiet")
  252.  
  253. (exit "Installationsskript beendet.")
  254.  
  255.  
  256.